package com.fr.report.script.core.parser;

import com.fr.report.cellElement.TableDataColumn;
import com.fr.report.script.Calculator;

public class AtomColumnIndex extends Tiny
{
  private int index;

  AtomColumnIndex(int paramInt)
  {
    this.index = paramInt;
  }

  public int getIndex()
  {
    return this.index;
  }

  public Object eval(Calculator paramCalculator)
    throws UtilEvalError
  {
    return TableDataColumn.createColumn(this.index);
  }

  public String toString()
  {
    return "#" + this.index;
  }

  public String getExpression(int paramInt1, int paramInt2, int paramInt3, int paramInt4, boolean paramBoolean)
  {
    return toString();
  }
}